#include <iostream>
using namespace std;

int main()
{
  cout<<2+18+2*81*9<<endl; 
  return 0;
}
